<!DOCTYPE html	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:sdu="http://sduept.com/jsf/cc">
<h:head>
	<link rel="stylesheet"
		href="#{request.contextPath}/resources/bootstrap/css/bootstrap.min.css" />
	<!-- Font Awesome -->
	<link rel="stylesheet"
		href="#{request.contextPath}/resources/font-awesome/css/font-awesome.min.css" />
</h:head>
<h:body style="margin-top:20px">
	<h:form id="form">
	<p:layout fullPage="true">
		<p:layoutUnit position="center">
			<p:growl id="msgs" showDetail="true" />
			<p:toolbar>
				<f:facet name="left">
					<p:commandButton icon="ui-icon-disk" value="保存"
						actionListener="#{changePasswordController.updatePwd}" update="form:msgs"
						style="margin-left:5px" />
					<p:commandButton icon="ui-icon-cancel" value="取消"
						style="margin-left:5px" 
						actionListener="#{changePasswordController.closeDialog}" />
				</f:facet>
			</p:toolbar>
				<p:panelGrid id="personnelInfopg" columns="2" cellpadding="8"
					style="width:100%;margin-top:6px">
					<h:outputText value="原密码:" />
					<p:password id="oldpwd" style="width:100%" value="#{changePasswordController.oldPwd}" 
						promptLabel="输入原密码"></p:password>
					<h:outputText value="新密码:" />
					<p:password id="pwd3" style="width:100%"  value="#{changePasswordController.newPwd}"
						feedback="true" inline="true" promptLabel="输入密码" weakLabel="弱"
						goodLabel="中" strongLabel="强"></p:password>
					<h:outputText value="新密码确认:" />
					<p:password id="pwd4" style="width:100%" value="#{changePasswordController.newPwd1}"></p:password>
				</p:panelGrid>
			</p:layoutUnit>
			<p:layoutUnit  header="密码要求" size="40%" position="east">
				1、密码的长度不小于8位<br/>
				2、密码不能与旧密码相同<br/>
				3、密码不能与用户名相同<br/> 
				4、密码至少为字符、数字和符号其中两种组合
			</p:layoutUnit>
		</p:layout>
	</h:form>
</h:body>
</html>






